<?php
namespace app\home\model;

use think\Model;

class Comment extends Model
{
   protected $table = 'rd_home_comments';
    /**
     * 显示列表.
     *
     * @return \think\Response
     */
    public  function lists($data){
        //
        $where['role'] = $data['role'];
        $lists = User::where($where)
            ->order('create_time desc')
            ->paginate($data['listrow']);
       if (!empty($lists)){
           return $lists;
       }else{
           return false;
       }
    }
}